<article id="wikiArticle">
<div></div>
<p><strong><code>Intl.DateTimeFormat.prototype</code></strong>表示 <a href="Reference/Global_Objects/DateTimeFormat" title="交互示例的源代码存储在 GitHub 资源库。如果你愿意分布交互示例，请复制https://github.com/mdn/interactive-examples，并向我们发送一个pull请求。"><code>Intl.DateTimeFormat</code></a>构造函数的原型对象。</p>
<p></p><table class="standard-table">
<thead>
<tr>
<th class="header" colspan="2"><code>Intl.DateTimeFormat.prototype</code> 属性的属性特性：</th>
</tr>
</thead>
<tbody>
<tr>
<td>writable</td>
<td>false</td>
</tr>
<tr>
<td>enumerable</td>
<td>false</td>
</tr>
<tr>
<td>configurable</td>
<td>false</td>
</tr>
</tbody>
</table> <p></p>
<h2 id="描述">描述</h2>
<p>参见 <a href="Reference/Global_Objects/DateTimeFormat" title="交互示例的源代码存储在 GitHub 资源库。如果你愿意分布交互示例，请复制https://github.com/mdn/interactive-examples，并向我们发送一个pull请求。"><code>DateTimeFormat</code></a>来看<code>Intl.DateTimeFormat实例的一个描述。</code></p>
<p><a href="Reference/Global_Objects/DateTimeFormat" title="交互示例的源代码存储在 GitHub 资源库。如果你愿意分布交互示例，请复制https://github.com/mdn/interactive-examples，并向我们发送一个pull请求。"><code>Intl.DateTimeFormat</code></a> 实例继承自<code>Intl.DateTimeFormat.prototype</code>. 对原型对象的修改都继承自<a href="Reference/Global_Objects/DateTimeFormat" title="交互示例的源代码存储在 GitHub 资源库。如果你愿意分布交互示例，请复制https://github.com/mdn/interactive-examples，并向我们发送一个pull请求。"><code>Intl.DateTimeFormat</code></a>实例。</p>
<h2 id="属性">属性</h2>
<dl>
<dt><code>Intl.DateTimeFormat.prototype.constructor</code></dt>
<dd>请参考 <a href="Reference/Global_Objects/DateTimeFormat" title="交互示例的源代码存储在 GitHub 资源库。如果你愿意分布交互示例，请复制https://github.com/mdn/interactive-examples，并向我们发送一个pull请求。"><code>Intl.DateTimeFormat</code></a>.</dd>
<dt><a class="new" href="Reference/Global_Objects/DateTimeFormat/format" rel="nofollow" title="此页面仍未被本地化, 期待您的翻译!"><code>Intl.DateTimeFormat.prototype.format</code></a></dt>
<dd>Getter; 返回一个<a href="Reference/Global_Objects/DateTimeFormat" title="交互示例的源代码存储在 GitHub 资源库。如果你愿意分布交互示例，请复制https://github.com/mdn/interactive-examples，并向我们发送一个pull请求。"><code>DateTimeFormat</code></a>对象的根据locale和格式化参数格式化日期的函数。</dd>
</dl>
<h2 id="方法">方法</h2>
<dl>
<dt><a class="new" href="Reference/Global_Objects/DateTimeFormat/formatToParts" rel="nofollow" title="此页面仍未被本地化, 期待您的翻译!"><code>Intl.DateTimeFormat.prototype.formatToParts()</code></a></dt>
<dd>Returns an <a href="Reference/Array" title="REDIRECT Array"><code>Array</code></a> of objects representing the date string in parts that can be used for custom locale-aware formatting.</dd>
<dt><a class="new" href="Reference/Global_Objects/DateTimeFormat/resolvedOptions" rel="nofollow" title="此页面仍未被本地化, 期待您的翻译!"><code>Intl.DateTimeFormat.prototype.resolvedOptions()</code></a></dt>
<dd>返回一个新的属性对象，反射出在对象初始化过程中计算出的locale和options的各个值。</dd>
</dl>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">规范版本</th>
<th scope="col">规范状态</th>
<th scope="col">注解</th>
</tr>
<tr>
<td><a class="external" href="https://www.ecma-international.org/ecma-402/1.0/#sec-12.2.1" hreflang="en" lang="en" rel="noopener">ECMAScript Internationalization API 1.0 (ECMA-402)<br/><small lang="zh-CN">Intl.DateTimeFormat.prototype</small></a></td>
<td><span class="spec-Standard">Standard</span></td>
<td>初始定义</td>
</tr>
<tr>
<td><a class="external" href="https://www.ecma-international.org/ecma-402/2.0/#sec-12.2.1" hreflang="en" lang="en" rel="noopener">ECMAScript Internationalization API 2.0 (ECMA-402)<br/><small lang="zh-CN">Intl.DateTimeFormat.prototype</small></a></td>
<td><span class="spec-Standard">Standard</span></td>
<td> </td>
</tr>
<tr>
<td><a class="external" href="https://tc39.github.io/ecma402/#sec-Intl.DateTimeFormat.prototype" hreflang="en" lang="en" rel="noopener">ECMAScript Internationalization API 4.0 (ECMA-402)<br/><small lang="zh-CN">Intl.DateTimeFormat.prototype</small></a></td>
<td><span class="spec-Draft">Draft</span></td>
<td> </td>
</tr>
</tbody>
</table>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
<div><div class="blockIndicator warning"><strong><a class="external" href="https://github.com/mdn/browser-compat-data" rel="noopener">We're converting our compatibility data into a machine-readable JSON format</a></strong>.
            This compatibility table still uses the old format,
            because we haven't yet converted the data it contains.
            <strong><a class="new" href="/zh-CN/docs/MDN/Contribute/Structures/Compatibility_tables" rel="nofollow">Find out how you can help!</a></strong></div>
<div class="htab">
<a id="AutoCompatibilityTable" name="AutoCompatibilityTable"></a>
<ul>
<li class="selected"><a>Desktop</a></li>
<li><a>Mobile</a></li>
</ul>
</div></div>
<div id="compat-desktop">
<table class="compat-table">
<tbody>
<tr>
<th>Feature</th>
<th>Chrome</th>
<th>Firefox (Gecko)</th>
<th>Internet Explorer</th>
<th>Opera</th>
<th>Safari (WebKit)</th>
</tr>
<tr>
<td>Basic support</td>
<td>24</td>
<td><a href="/en-US/Firefox/Releases/29" title="Released on 2014-04-29.">29</a> (29)</td>
<td>11</td>
<td>15</td>
<td><span style="color: #f00;">未实现</span></td>
</tr>
</tbody>
</table>
</div>
<div id="compat-mobile">
<table class="compat-table">
<tbody>
<tr>
<th>Feature</th>
<th>Android</th>
<th>Chrome for Android</th>
<th>Firefox Mobile (Gecko)</th>
<th>IE Phone</th>
<th>Opera Mobile</th>
<th>Safari Mobile</th>
</tr>
<tr>
<td>Basic support</td>
<td><span style="color: #f00;">未实现</span></td>
<td>26</td>
<td><span style="color: #f00;">未实现</span></td>
<td><span style="color: #f00;">未实现</span></td>
<td><span style="color: #f00;">未实现</span></td>
<td><span style="color: #f00;">未实现</span></td>
</tr>
</tbody>
</table>
</div>
<h2 id="参见">参见</h2>
<ul>
<li><a href="Reference/Global_Objects/DateTimeFormat" title="交互示例的源代码存储在 GitHub 资源库。如果你愿意分布交互示例，请复制https://github.com/mdn/interactive-examples，并向我们发送一个pull请求。"><code>Intl.DateTimeFormat</code></a></li>
</ul>
</article>